class Person1 {
    name:string;
    age: number;
    constructor(name:string,age:number) {
        this.name = name;
        this.age = age;
        console.log(this,'this')
    }
    hello() {
        console.log("你好呀",this)
    }
}
let p1 = new Person1("哪吒",15)
p1.hello();